<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>2025新年快乐</title>
  <style>
    /* 设置整个页面的背景为渐变颜色 */
    body {
      background: linear-gradient(45deg, #FFD700, #FF69B4, #00FFFF, #FF00FF);
      background-size: 400% 400%;
      animation: gradient 15s ease infinite;
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      margin: 0;
    }

    /* 定义背景渐变动画 */
    @keyframes gradient {
      0% {
        background-position: 0% 50%;
      }

      50% {
        background-position: 100% 50%;
      }

      100% {
        background-position: 0% 50%;
      }
    }

    /* 样式化文字容器 */
    h1 {
      font-size: 6em;
      color: white;
      text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
      animation: blink 1s infinite alternate;
    }

    /* 定义文字闪烁动画 */
    @keyframes blink {
      from {
        opacity: 0.8;
      }

      to {
        opacity: 1;
      }
    }
    .fireworks {
      position: absolute;
      left: 0;
      right: 0;
    }
  </style>
</head>

<body >
  <div class="fireworks"></div>
  <h1>2025新年快乐！</h1>
  <!-- 引入烟花特效的JavaScript库 -->
  <!-- jsDelivr  -->
  <script src="https://cdn.jsdelivr.net/npm/fireworks-js@2.x/dist/index.umd.js"></script>
  
  <!-- UNPKG -->
  <script src="https://unpkg.com/fireworks-js@2.x/dist/index.umd.js"></script>
  
  <!-- 使用方式 -->
  <script>
    const container = document.querySelector('.fireworks')
    const fireworks = new Fireworks.default(container)
    fireworks.start()
  </script>
</body>

</html>